package com.lei.springbootpractice.pojo;

import java.time.LocalDateTime;

public class NotificationStatusPojo {
    private Integer id;
    private String userId;
    private String userRole;
    private String notificationType;
    private String relatedId;
    private String messageContent;
    private String senderName;
    private Boolean isRead;
    private LocalDateTime createdTime;
    private LocalDateTime updatedTime;

    // 构造函数
    public NotificationStatusPojo() {}

    public NotificationStatusPojo(String userId, String userRole, String notificationType, 
                                String relatedId, String messageContent, String senderName) {
        this.userId = userId;
        this.userRole = userRole;
        this.notificationType = notificationType;
        this.relatedId = relatedId;
        this.messageContent = messageContent;
        this.senderName = senderName;
        this.isRead = false;
        this.createdTime = LocalDateTime.now();
        this.updatedTime = LocalDateTime.now();
    }

    // Getter和Setter方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserRole() {
        return userRole;
    }

    public void setUserRole(String userRole) {
        this.userRole = userRole;
    }

    public String getNotificationType() {
        return notificationType;
    }

    public void setNotificationType(String notificationType) {
        this.notificationType = notificationType;
    }

    public String getRelatedId() {
        return relatedId;
    }

    public void setRelatedId(String relatedId) {
        this.relatedId = relatedId;
    }

    public String getMessageContent() {
        return messageContent;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }

    public String getSenderName() {
        return senderName;
    }

    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    public Boolean getIsRead() {
        return isRead;
    }

    public void setIsRead(Boolean isRead) {
        this.isRead = isRead;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    public LocalDateTime getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(LocalDateTime updatedTime) {
        this.updatedTime = updatedTime;
    }

    @Override
    public String toString() {
        return "NotificationStatusPojo{" +
                "id=" + id +
                ", userId='" + userId + '\'' +
                ", userRole='" + userRole + '\'' +
                ", notificationType='" + notificationType + '\'' +
                ", relatedId='" + relatedId + '\'' +
                ", messageContent='" + messageContent + '\'' +
                ", senderName='" + senderName + '\'' +
                ", isRead=" + isRead +
                ", createdTime=" + createdTime +
                ", updatedTime=" + updatedTime +
                '}';
    }
} 